package routes

import (
	"el/app/http/ApiController"
	"net/http"

	"github.com/labstack/echo/v4"
)

func Api(api *echo.Group) {
	api.Any("test", func(c echo.Context) error {
		return c.JSON(http.StatusOK, nil)
	})

	VisitorController := ApiController.VisitorController{}
	{
		api.Any("visitor", VisitorController.Login)
	}

	ElasticsearchController := ApiController.ElasticsearchController{}
	{
		api.Any("es/create", ElasticsearchController.Create)
	}

}
